export const initTable = [
  `
CREATE TABLE IF NOT EXISTS ai_agent (
	mark text PRIMARY KEY NOT NULL,
	name text NOT NULL,
	icon text
)
`,
  `CREATE TABLE IF NOT EXISTS ai_model_chat (
	mark text PRIMARY KEY NOT NULL,
	name text NOT NULL,
	url text NOT NULL,
	model text NOT NULL
)`,
  `CREATE TABLE IF NOT EXISTS ai_model_vector (
	mark text PRIMARY KEY NOT NULL,
	name text NOT NULL,
	url text NOT NULL,
	model text NOT NULL
)`,
  `CREATE TABLE IF NOT EXISTS ai_plugin_cloud (
	mark text PRIMARY KEY NOT NULL,
	name text NOT NULL,
	url text NOT NULL
)`,
  `CREATE TABLE IF NOT EXISTS ai_plugin_cloud_tool (
	mark text PRIMARY KEY NOT NULL,
	name text NOT NULL,
	plugin_mark text NOT NULL,
	path text NOT NULL
)`,
  `CREATE TABLE IF NOT EXISTS ai_plugin_local (
	mark text PRIMARY KEY NOT NULL,
	name text NOT NULL
)`,
  `CREATE TABLE IF NOT EXISTS ai_plugin_local_tool (
	mark text PRIMARY KEY NOT NULL,
	name text NOT NULL,
	plugin_mark text NOT NULL,
	description text,
	input_schema NOT NULL,
	output_schema NOT NULL
)`,
  `CREATE TABLE IF NOT EXISTS ai_user (
	id integer PRIMARY KEY AUTOINCREMENT NOT NULL,
	name text NOT NULL,
	email text NOT NULL
)`
]
export const initData = `
INSERT INTO "ai_model_chat" ("mark", "name", "url", "model") VALUES ('qwen-max', '千问max', 'http://qwen.com/chat', 'qwen-max');
INSERT INTO "ai_plugin_local" ("mark", "name") VALUES ('file', '文件操作');
INSERT INTO "ai_plugin_local_tool" ("mark", "name", "plugin_mark", "description", "input_schema", "output_schema") VALUES ('createDirIfNotExist', '创建目录', 'file', '创建目录', '{}', '{}');
`
